<?php
namespace App\Lib\Pay\Wxpay;

/*微信app支付配置信息*/

class WxJsPayConfig extends WxPayConfigInterface
{
    public $config;
    public function __construct()
    {
        $this->config = config('pay.wxpay_js');
    }
    
    public function GetAppId()
    {
        return $this->config['appid'];
    }
    public function GetMerchantId()
    {
        return $this->config['mch_id'];
    }
    
    public function GetNotifyUrl()
    {
        return $this->config['notify_url'];
    }
    public function GetSignType()
    {
        return $this->config['sign_type'];
    }
    
    public function GetProxy(&$proxyHost, &$proxyPort)
    {
        $proxyHost = "0.0.0.0";
        $proxyPort = 0;
    }
    
    public function GetReportLevenl()
    {
        return 1;
    }
    
    public function GetKey()
    {
        return $this->config['key'];
    }
    
    public function GetAppSecret()
    {
        return $this->config['app_secret'];
    }
    
    public function GetSSLCertPath(&$sslCertPath, &$sslKeyPath)
    {
        $sslCertPath = '../cert/apiclient_cert.pem';
        $sslKeyPath = '../cert/apiclient_key.pem';
    }
    
}
